package com.mit.service.maintenance.dao.impl;

import java.util.List;

import com.mit.common.maintenance.dto.SeasonDTO;
import com.mit.service.core.dao.AbstractDAO;
import com.mit.service.maintenance.dao.ISeasonDAO;

public class SeasonDAOImpl extends AbstractDAO implements ISeasonDAO {

	@Override
	public List<SeasonDTO> retrieveSeasons(int orgId) {
		
		return getSqlMapClientTemplate().queryForList("selectSeasons", orgId);
	}

	@Override
	public SeasonDTO retreiveSeason(int id) {
		
		return (SeasonDTO) getSqlMapClientTemplate().queryForObject("selectSeason", id);
	}

}
